﻿@model POC_Citi.Domain.Model.Activity

@{
    ViewBag.Title = "Create";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Activity</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Description)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Description)
            @Html.ValidationMessageFor(model => model.Description)
        </div>
         <div class="editor-label">
            @Html.LabelFor(model => model.AreaId, "Area")
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => model.AreaId, (SelectList)ViewBag.Area)
            @Html.ValidationMessageFor(model => model.AreaId)
        </div>
        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

<script>
    $(document).ready(function () {
        $('#SiteTitle').text('Create Activity');
    });
    var path = '@Url.Content("~/xml/menu-config.xml")';
    var brand = new brand('Activity', '', 'top', path);
    createSectionTitleName();
    createFontWidget('all', 'yes');
</script>

